<?php
require_once('lib/utils.php');
require_once('lib/content.php');

$active_content = content_get_by_id($_GET['content']);

if(!empty($active_content)) {

echo '

<h2>'.$active_content['title'].'</h2>
<div id="generique">
'.html_entity_decode($active_content['text']).'
</div>

';

}
else echo '<h2>Erreur</h2><div id="generique"><p class="error">La page demandée n\'existe pas</p></div>';